import HomePage from "../pages/HomePage";
import Test from "../componet/testContent/text";
import { Navigate } from "react-router-dom";
import ycyRouter from "./ycyRouter";
import hwRouter from "./hwRouter";
import zsRouter from "./zsRouter";
import ljRouter from "./ljRouter";
import psrRouter from "./psrRouter";
import hfRouter from "./hfRouter";
import wqxRouter from "./wqxRouter";
import yyRouter from "./yyRouter";
import Login from "../../src/pages/login/login"
// import AddGg from "../componet/SystemManeger/AddGg";
import BusinessOverview from "../componet/defultPage/BusinessOverview";
import Errors from "../pages/404/404"
const mainRouter = [
  {
    path: "/",
    element: <Navigate to={"/Login"}></Navigate>,
  },
  {
    path: "/Login",
    element: <Login></Login>,
  },
  {
    path: "/HomePage",
    element: <HomePage></HomePage>,
    children: [
      {
        index: "index",
        element: <BusinessOverview></BusinessOverview>,
      },
      // {
      //   path: "Test",
      //   element: <Test></Test>,
      // },
      ...ycyRouter,
      ...hwRouter,
      ...zsRouter,
      ...ljRouter,
      ...psrRouter,
      ...hfRouter,
      ...wqxRouter,
      ...yyRouter,
    ],
  },
  {
      path: "*",
      element: <Errors></Errors>,
  }
];
export default mainRouter;
